package com.huatai.manage.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huatai.manage.entity.TbStageMainEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.huatai.manage.query.TrialIdPageQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 阶段管理 Mapper 接口
 * </p>
 *
 * @author luoxc
 * @since 2023-03-22
 */
public interface TbStageMainMapper extends BaseMapper<TbStageMainEntity> {

	Page<TbStageMainEntity> pageByTrialId(Page<TbStageMainEntity> page, @Param("trialId") String trialId);

	List<TbStageMainEntity> listByTrialId(@Param("trialId") String trialId);

	//List<TbStageMainEntity> getByTrialId(@Param("trialIdRequest") TrialIdPageQuery trialIdPageQuery);

	Page<TbStageMainEntity> pageList(Page<TbStageMainEntity> page,@Param("stage") TbStageMainEntity stage);

	List<TbStageMainEntity> selectAll();

	TbStageMainEntity getByStageId(@Param("stageId") String stageId);
}
